import 'package:flame/components.dart' show TextComponent, TextPaint;
import 'package:flame/extensions.dart';
import 'package:flame/text.dart' show TextStyle;
import 'package:flutter/cupertino.dart' show Shadow;
import 'package:flutter/material.dart' show Colors;

class TextSelectYourPlant extends TextComponent {
  static final textStyle = TextStyle(
    fontSize: 21,
    color: Color.fromRGBO(200, 162, 83, 1),
    shadows: [
      Shadow(color: Colors.black, blurRadius: 0.2, offset: Offset(-1, 0)),
    ],
  );

  @override
  Future<void> onLoad() async {
    text = '选择你的植物';
    textRenderer = TextPaint(style: textStyle);
    position = Vector2(225, 5);
    return super.onLoad();
  }
}